<%@page import="com.wodwl.entity.Resource"%>
<%@page import="com.wodwl.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@include file="../templete/header.jsp" %>
	<script type="text/javascript" src="../../static/ckeditor/ckeditor.js"></script>
</head>
<body >
<%pageContext.setAttribute("linkType","5");%>
<%@include file="../templete/user_info.jsp"  %>


<%
	Resource resource=(Resource)request.getAttribute("resource");
%>
		<div class="conR">
			<div class="conR-hd">
				<h3>上传资源</h3>
			</div>
			<form action="/resource/resource_editor2.do" method="post" enctype="multipart/form-data">
				 <input type="hidden" name="rid" value="<%=resource.getRid() %>" >
			
				<table>
					<tr>
						<td>资源名称：</td><td><input type="text" name="name" value="<%=resource.getName()%>"></td>
					</tr>
					
					<tr>
						<td>系统分类：</td>
						<td>
							<select name="type">
								<option value="1"<%if(resource.getType()==1){ %>selected="selected"<%} %>>程序文档</option>
								<option value="2" <%if(resource.getType()==2){ %>selected="selected"<%} %>>小论文</option>
								<option value="3"<%if(resource.getType()==3){ %>selected="selected"<%} %>>答辩资料</option>
								<option value="4"<%if(resource.getType()==4){ %>selected="selected"<%} %>>音乐</option>
								<option value="5"<%if(resource.getType()==5){ %>selected="selected"<%} %>>影视</option>
								<option value="6"<%if(resource.getType()==6){ %>selected="selected"<%} %>>其它</option>
							</select>
						</td>
					
					</tr>
					<tr>
						<td>我的分类：</td><td><input type="text" name="category" value="<%=resource.getCategory()%>"></td>
					</tr>
					<tr>
						<td>关键字：</td><td><input type="text" name="tag" value="<%=resource.getTag()%>"></td>
					</tr>
					
					
					<tr>
						
						<td colspan="2">
							资源描述：<br/>
							<textarea name="description"  id="description"><%=resource.getDescription() %></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<input type="submit" value="提交">
						</td>
					</tr>
				</table>
			<script type="text/javascript">
					CKEDITOR.replace("description", {
						skin : "kama",
						width : 600,
						height : 400
					});
				</script>
				
			</form>
				<br/>
				<p class="pager-wrap pageList">
					<span class="pageList-cur">1</span> <a href="#" class="link-lb">2</a>
					<a href="#" class="link-lb">3</a> <a class="link-lb" href="#">下一页</a>
				</p>
			</div>
		</div>
	<jsp:include page="../templete/footer.jsp"></jsp:include>
</body>
</html>